module.exports = {
    devServer: {
        host: '0.0.0.0',
        hot: true,
        disableHostCheck: true,
    },
    css: {
        loaderOptions: {
            postcss: {
                plugins: [
                    require("postcss-pxtorem")({
                        rootValue: 37.5,
                        propList: ["*"]
                    })
                ]
            }
        }
    },
    configureWebpack: (config) => {
        // 清除缓存
        config.output.filename = 'static/js/[name].[hash:10].js'
        config.output.chunkFilename = 'static/js/[name].[hash:10].js'
    },
}
